package com.huiruan.Task;

import cn.hutool.core.date.DateTime;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author CTL
 * @create 2025-04-22 14:12
 */
@Component
public class HrTask {
    @Scheduled(fixedRate = 500000)
    public void excuteTask(){
        System.out.println("定时任务+++++++++++++++++");
    }
    @Scheduled(cron = "20 26 08 * * *")
    public void excuteTaskTatIime(){
        System.out.println(DateTime.now()+"定时执行================");
    }
}
